package model

import "time"

type GoodAttribute struct {
	Id        uint64    `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	GoodId    int64     `gorm:"column:good_id;type:bigint(20);default:NULL;" json:"good_id"`
	Name      string    `gorm:"column:name;type:varchar(255);default:NULL;" json:"name"`
	CreatedAt time.Time `gorm:"column:created_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:datetime(3);default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
}

func (g *GoodAttribute) TableName() string {
	return "good_attribute"
}
